<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@page import="java.util.Vector"%>
<%@page import="model.*"%>
<jsp:useBean id="util" class="model.UtilForm" scope="session"></jsp:useBean>
<html:html xhtml="true" lang="true">
<head>

<title><bean:message key="welcome.title"/></title>
<html:base/>
<style type="text/css">
<!--
.style3 {
	font-size: 9px;
	color: #FF0000;
}
.style5 {color: #FF0000}
body {
	background-color: #FFFFFF;
}
-->
</style><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>&nbsp;</p>
<html:errors/>
<html:form action="/CadastramentoUsuario">
<table width="421" height="214" border="0" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  <tr>
    <td colspan="2"><div align="center"><strong>Cadastro de Solicita&ccedil;&atilde;o </strong></div></td>
  </tr>
  <tr>
    <td><span class="style3">* Campos Obrigatorios</span></td>
    <td><!-- <bean:write name="util"  property="cod_cliente" /> --></td>
  </tr>
  <tr>
    <td><div align="left"><strong>Usuario</strong><span class="style5">*</span></div></td>
    <td><div align="left">
      <html:text property="nome_usuario" disabled="false" size="80" maxlength="80" title="Nome Usuario"></html:text>
    </div></td>
  </tr>
  <tr>
    <td><div align="left"><strong>Perfil</strong><span class="style5">*</span></div></td>
    <td><html:select property="cod_perfil">
    			 <%
		   			Vector perfil =(Vector) util.getVecperfil();	   
    			 	System.out.println(perfil.size());
		   			for(int i =0 ;i < perfil.size();i++ ) {
			  			PerfilForm perfilbean = (PerfilForm)perfil.get(i);
			     %>
			     <html:option value="<%=(Integer.toString(perfilbean.getCod_perfil())) %>">
			     <%=perfilbean.getDescricao_perfil()%>
			     </html:option>
			    <%} %>
        	</html:select></td>
    
  </tr>
  <tr>
    <td><strong>Login </strong></td>
    <td><html:text property="login_usuario" disabled="false"  size="60" maxlength="60" title="Login do Usuario"  ></html:text></td>
  </tr>
  <tr>
    <td><strong>Senha </strong></td>
<td><html:password property="senha_usuario" disabled="false" readonly="false" size="60" maxlength="60" title="Senha do Usuario"  ></html:password></td>
  </tr>
  <tr>
  <tr>
    <td><strong>E-Mail</strong></td>
    <td><html:text property="email_usuario" disabled="false" maxlength="60" size="60"> </html:text></td>
  </tr>
  <tr>
    <td><div align="center">
      <input type="reset" name="Reset" value="Voltar">
    </div></td>
    <td><div align="center">
      <input type="submit" name="Submit" value="Cadastrar">
    </div></td>
  </tr>
</table>
</html:form>
</body>
</html:html>